package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.entity.Dish;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface IDishService extends IService<Dish> {


    public void saveWithFlavor(DishDto dishDto);

    public void updateWithFlavor(DishDto dishDto);

    public DishDto selectById(Long id);

    public void deleteByIds(List<Long> ids);

    public void updateStatus(Integer status, List<Long> ids);

    List<Dish> selectWithCategoryId(Long categoryId);
}
